package com.jcfk.eam.dao.main;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.common.web.domain.DataPage;
import com.jcfk.eam.domain.dto.main.EamInspectionPlanDTO;
import com.jcfk.eam.domain.po.main.EamInspectionPlan;
import com.jcfk.eam.domain.query.main.EamInspectionPlanQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 巡检计划
 * 
 * @author awei
 * @email 522891237@gqq.com
 * @date 2024-09-24
 */
@Repository
public interface EamInspectionPlanDao extends BaseDao<EamInspectionPlan> {
    /**
     * 巡检计划分页查询
     *
     * @param page
     * @param query
     * @return
     */
    DataPage<EamInspectionPlanDTO> queryByPage(@Param("page") DataPage<EamInspectionPlanDTO> page, @Param("query") EamInspectionPlanQuery query);

    Integer queryPlanCount(@Param("query") EamInspectionPlanDTO query);

    /**
     * 巡检计划查询
     * @param qw 查询条件
     * @return 巡检计划
     */
    List<EamInspectionPlanDTO> getList(@Param("ew") QueryWrapper<?> qw);
}
